﻿package Classes.Bonus{
	import flash.events.Event;	
	
	import Classes.Elements.*;
	import Classes.Utils.*;
	import Classes.Weapons.*;
	import Classes.Weapons.Bullets.*;
	import Classes.Player.*;
	
	public class BulletBonus extends Bonus{
		public function BulletBonus(){			
			score = UnitType.BulletBonus.score;
		}		
		override public function doBonus(f:Fighter):void{			
			if(enable){
				if(f.numGuns<4)
					f.numGuns+=2;
				else
					f.numGuns += 2;
			}
			enable = false;
			
		}
	}
}